<template>
  <div>
    <!-- 头部导航 -->
    <div class="title">
      <el-breadcrumb>
        <el-breadcrumb-item>首页</el-breadcrumb-item>
      </el-breadcrumb>
    </div>
    <!-- 主体内容 -->
    <div class="iont">
      <!-- 第一个模块 -->
      <div class="onces">
        <!-- 头部 -->
        <div class="j_top">
          <div class="j_icon">
            <i class="el-icon-user-solid" style="font-size: 20px; font-weight: 500" />
          </div>
          <div class="text">
            <div style="margin-top: 15px">345522</div>
            <div>商城用户</div>
          </div>
        </div>
        <!--分行 -->
        <div class="bottome">
          <div class="branch_top">订单统计信息</div>
          <!--详细 -->
          <div class="branch_list">
            <span>待发货订单：</span>
            <p><span style="color: #ffb400">0</span> <span>个</span></p>
          </div>
          <div class="branch_list">
            <span>已发货订单：</span>
            <p><span style="color: #ffb400">10</span> <span>个</span></p>
          </div>
          <div class="branch_list">
            <span>待结算订单：</span>
            <p><span style="color: #ffb400">13</span> <span>个</span></p>
          </div>
          <div class="branch_list">
            <span>已成交订单：</span>
            <p><span style="color: #ffb400">26</span> <span>个</span></p>
          </div>
          <div class="branch_list branch_lists">
            <span>交易失败：</span>
            <p><span style="color: #ffb400">30</span> <span>个</span></p>
          </div>
        </div>
      </div>
      <!-- 第二个模块 -->
      <div class="onces">
        <!-- 头部 -->
        <div class="j_top">
          <div class="j_icon">
            <i class="el-icon-goods" style="font-size: 20px; font-weight: 500" />
          </div>
          <div class="text">
            <div style="margin-top: 15px">345</div>
            <div>商城订单</div>
          </div>
        </div>
        <!--分行 -->
        <div class="bottome">
          <div class="branch_top">商品统计信息</div>
          <!--详细 -->
          <div class="branch_list">
            <span>商品总数：</span>
            <p><span style="color: #ffb400">340</span> <span>个</span></p>
          </div>
          <div class="branch_list">
            <span>回收站商品：</span>
            <p><span style="color: #ffb400">10</span> <span>个</span></p>
          </div>
          <div class="branch_list">
            <span>上架商品：</span>
            <p><span style="color: #ffb400">13</span> <span>个</span></p>
          </div>
          <div class="branch_list">
            <span>下架商品：</span>
            <p><span style="color: #ffb400">26</span> <span>个</span></p>
          </div>
          <div class="branch_list branch_lists">
            <span>商品评论：</span>
            <p><span style="color: #ffb400">2145</span> <span>个</span></p>
          </div>
        </div>
      </div>
      <!-- 第三个模块 -->
      <div class="onces">
        <!-- 头部 -->
        <div class="j_top">
          <div class="j_icon">
            <i class="el-icon-user-solid" style="font-size: 20px; font-weight: 500" />
          </div>
          <div class="text">
            <div style="margin-top: 15px">￥34,500</div>
            <div>交易记录</div>
          </div>
        </div>
        <!--分行 -->
        <div class="bottome">
          <div class="branch_top">最新消息</div>
          <!--详细 -->
          <div class="branch_list branch_lists">
            <p><i class="el-icon-bell" style="color: red"></i></p>
            <p>XXX会员购买了XXX商品</p>
          </div>
          <div class="branch_list branch_lists">
            <p><i class="el-icon-bell" style="color: red"></i></p>
            <p>XXX会员购买了XXX商品</p>
          </div>
          <div class="branch_list branch_lists">
            <p><i class="el-icon-bell" style="color: red"></i></p>
            <p>XXX会员购买了XXX商品</p>
          </div>
          <div class="branch_list branch_lists">
            <p><i class="el-icon-bell" style="color: red"></i></p>
            <p>XXX会员购买了XXX商品</p>
          </div>
          <div class="branch_list branch_lists">
            <p><i class="el-icon-bell" style="color: red"></i></p>
            <p>XXX会员购买了XXX商品</p>
          </div>
        </div>
      </div>
    </div>
    <!-- 底部信息 -->
    <div class="gooter_list">
      <!-- 底部列表每一项 -->
      <div class="footer_lists" @click="Carousel">
        <i class="el-icon-s-order" style="font-size: 30px; margin-top: 15px"></i>
        <p>首页轮播图</p>
      </div>
      <div class="footer_lists" style="background: #597cf4" @click="Navigation">
        <i class="el-icon-pie-chart" style="font-size: 30px; margin-top: 15px"></i>
        <p>导航图标</p>
      </div>
      <div class="footer_lists" style="background: #9253df" @click="recommend">
        <i class="el-icon-s-shop" style="font-size: 30px; margin-top: 15px"></i>
        <p>商品推荐</p>
      </div>
      <div class="footer_lists" style="background: #42a7ff" @click="Notice">
        <i class="el-icon-s-tools" style="font-size: 30px; margin-top: 15px"></i>
        <p>公告管理</p>
      </div>
      <div class="footer_lists" style="background: #73d13d" @click="Goods">
        <i class="el-icon-location-outline" style="font-size: 30px; margin-top: 15px"></i>
        <p>退货地址管理</p>
      </div>
      <div class="footer_lists" style="background: #ed8686" @click="Classification">
        <i class="el-icon-position" style="font-size: 30px; margin-top: 15px"></i>
        <p>分类管理</p>
      </div>
      <div class="footer_lists" style="background: #eb0ef6" @click="Upload">
        <i class="el-icon-folder-opened" style="font-size: 30px; margin-top: 15px"></i>
        <p>一键上传商品</p>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {}
  },
  methods: {
    //首页
    Carousel() {
      this.$router.push({ name: 'Carousel' })
    },
    //导航
    Navigation() {
      this.$router.push({ name: 'Navigation' })
    },
    //推荐
    recommend() {
      this.$router.push({ name: 'recommend' })
    },
    //公告
    Notice() {
      this.$router.push({ name: 'Notice' })
    },
    //退货
    Goods() {
      this.$router.push({ name: 'Goods' })
    },
    //分类管理
    Classification() {
      this.$router.push({ name: 'Classification' })
    },
    //上传
    Upload() {
      this.$router.push({ name: 'Upload' })
    },
  },
  created() {},
}
</script>

<style lang="scss" scoped>
.title {
  margin-bottom: 10px;
}

.iont {
  width: 100%;
  height: 300px;
  display: flex;
  flex-wrap: wrap;
  align-content: space-around;
  flex-direction: column;

  //第一个模块
  .onces {
    width: 200px;
    height: 100%;
    .j_top {
      width: 100%;
      height: 60px;
      background: white;
      border: 1px solid #bbb;
      box-sizing: border-box;
      display: flex;

      //icon背景颜色
      .j_icon {
        width: 30%;
        height: 100%;
        background: #36cfca;
        text-align: center;
        line-height: 60px;
        color: white;
      }

      .text {
        width: 70%;
        height: 60px;
        text-align: center;
        margin-bottom: 20px;
      }
    }
    //分行
    .bottome {
      width: 100%;
      height: 188px;
      margin-top: 20px;
      border: 1px solid #ddd;
      box-sizing: border-box;
      //分行头部
      .branch_top {
        width: 100%;
        height: 30px;
        border-bottom: 1px solid #ddd;
        background: #f6f6f7;
        line-height: 30px;
        text-indent: 10px;
      }
      //分行详细
      .branch_list {
        width: 100%;
        height: 30px;
        border-bottom: 1px solid #ddd;
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-content: stretch;
        justify-content: center;
        align-items: center;
      }
      .branch_lists {
        border: 0;
      }
    }
    //
  }
}
.gooter_list {
  width: 100%;
  height: 100px;
  padding: 0 0 0 100px;
  box-sizing: border-box;
  display: flex;
  //lists
  .footer_lists {
    width: 100px;
    height: 70px;
    background: #36cfca;
    text-align: center;
    color: white;
    margin-right: 20px;
    cursor: pointer;
  }
  //
}
</style>
